var map ;
var currentLayer ;
var isGetDirectionsInitialized = 0 ;
var currentCoord ;
var destinationCoord ;
var originCoord ;
var originMarker ;
var destinationMarker ;
var waypointCounter = 0 ;
var polyline ;
var polylines = [] ;
var markers = [] ;
var waypointList = [] ;
var segmentsLength = 0 ;
var segmentCounter = 0 ;
var segments = [] ;
var segNums = "" ;